package com.aspose.cells;

class zoy {
   int a;
   String b;
   String c;
   String d;
   boolean e;
   String f;
   zcfl g;
   zcfl h;
   zcfl i;
   zcfl j;
   zcfl k;
   zcfl l;
   zbol m;
   String n;
   zow o;
   String p;
   int q;
   double r;
   int s;
   double t;
   int u;
   double v;
   int w;
   double x;
   double y;
   double z;
   double A;
   double B;
   int C;
   int D;
   int E;
   int F;
   int G;
   int H;
   String I;
   String J;
   boolean K = false;
   boolean L = false;
   boolean M = false;
   private int Q = 30;
   int N = 188;
   int O = 4095;
   Shape P = null;

   zbol a() {
      if (this.m == null) {
         this.m = new zbol();
      }

      return this.m;
   }

   boolean b() {
      if (this.O == 0) {
         return true;
      } else {
         if (this.N != 188) {
            int var1 = zase.aF(this.N);
            if (var1 == 4095) {
               return false;
            }

            this.O = var1;
            int var2 = zase.aE(var1);
            if (var2 == this.N) {
               return true;
            }
         }

         return false;
      }
   }

   int c() {
      return this.P == null ? this.Q : this.P.getMsoDrawingType();
   }

   void a(int var1) {
      this.Q = var1;
      this.M = true;
   }

   int d() {
      if (this.O == 4095) {
         this.O = zase.aF(this.N);
      }

      return this.O;
   }

   void e() {
      if ("absoluteAnchor".equals(this.n)) {
         if (this.P != null && this.P instanceof ChartShape && this.P.M().getType() == 2) {
            this.P.setWidth(this.C);
            this.P.setHeight(this.D);
         } else {
            this.P.a(0, false, this.E, this.F, this.C, this.D);
         }
      } else if ("oneCellAnchor".equals(this.n)) {
         this.P.a(this.s, (int)(this.t + 0.5D), this.q, (int)this.r, this.D, this.C);
      } else {
         int var1;
         if ("freeFloating".equals(this.n)) {
            if (this.K) {
               this.P.b(this.E, this.F, this.G, this.H);
               return;
            }

            var1 = this.P.L().L();
            this.P.a(0, false, zase.a(this.E, var1), zase.a(this.F, var1), zase.a(this.G, var1), zase.a(this.H, var1));
         } else if ("relSizeAnchor".equals(this.n)) {
            if (this.P.P()) {
               this.P.a(2, (int)(this.y * 4000.0D), (int)(this.z * 4000.0D), (int)((this.A - this.y) * 4000.0D), (int)((this.B - this.z) * 4000.0D));
            } else {
               this.P.a(0, false, (int)(this.y * 4000.0D), (int)(this.z * 4000.0D), (int)((this.A - this.y) * 4000.0D), (int)((this.B - this.z) * 4000.0D));
            }
         } else {
            if (!"absSizeAnchor".equals(this.n)) {
               var1 = 2;
               if (this.P.J().f()) {
                  var1 = 1;
               }

               if (this.p != null) {
                  var1 = zase.p(this.p);
               }

               if (this.s >= 1048576) {
                  this.s = 1048575;
                  this.t = (double)this.P.M().getCells().getRowHeightPixel(this.s);
               }

               this.P.a(var1, this.s, this.t, this.q, this.r, this.w, this.x, this.u, this.v);
               return;
            }

            if (this.P.P()) {
               Chart var6 = (Chart)this.P.J().h();
               double var2 = (double)var6.getChartObject().getWidth();
               double var4 = (double)var6.getChartObject().getHeight();
               this.P.a(1, (int)(this.y * 4000.0D), (int)(this.z * 4000.0D), (int)((double)this.C / var2 * 4000.0D), (int)((double)this.D / var4 * 4000.0D));
               this.P.getLineFormat().setVisible(true);
            }
         }
      }

      if (this.p != null && this.p.length() != 0) {
         this.P.setPlacement(zase.p(this.p));
      }

   }
}
